/*
 * @Author: zs19991020 13327343261
 * @Date: 2023-11-27 15:54:41
 * @LastEditors: zs19991020 13327343261
 * @LastEditTime: 2023-11-27 16:20:09
 * @FilePath: \村庄规划编制管理系统\src\api\collecting\index.js
 * @Description:村庄规划“金点子”征集活动总结接口
 */
import request from '@/utils/request'

// 金点子获取列表接口
export function getJdzList(data) {
    return request({
        url: '/api/jdz/getlist',
        method: 'post',
        data
    })
}

// 金点子上传接口
// export function getJdzUpload(data) {
//   return request({
//       url: '/api/jdz/upload',
//       method: 'post',
//       params:data
//   })
// }
export function getJdzUpload(data) {
  return request({
      url: '/api/jdz/upload',
      method: 'post',
      headers: {
          "Content-Type": "multipart/form-data"
      },
      data: data,
      transformRequest: [function (formDatas) {
          return formDatas;
      }]})}
